package com.wkbb.common.enums;

/**
 * 组织类型枚举
 *
 * @author Lilin
 */
public enum OrganizationTypeEnum {

    /**
     * 因时
     */
    WK(1, "因时"),
    /**
     * 代理商
     */
    AGENT(2, "代理商"),
    /**
     * 教育机关
     */
    EDUCATION (3, "机关"),
    /**
     * 集团
     */
    CONGLOMERATE(4, "集团"),
     
    KINDERGARTEN(5, "幼儿园"),
    
    PRIMARY_SCHOOL(6, "小学"),

    //SECONDARY_SCHOOL(7, "中职"),
   
    MIDDLE_SCHOOL(8, "初中"),
   
    HIGH_SCHOOL(9, "高中"),

    /**
     * 九年一贯
     */
    NINE_CONSISTENCY_SCHOOL(14, "九年一贯"),

    /**
     * 十二年一贯
     */
    TWELVE_CONSISTENCY_SCHOOL(15, "十二年一贯");

    private OrganizationTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static String getDesc(Integer value) {
        for (OrganizationTypeEnum organizationType : OrganizationTypeEnum.values()) {
            if (organizationType.getValue().intValue() == value) {
                return organizationType.getDesc();
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
